package com.itheima.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("渠道饼图数据封装")
public class ChannelPieDto {
    @ApiModelProperty("渠道对应合同数量")
    private Integer num;
    @ApiModelProperty("渠道名称")
    private String channel;

    public ChannelPieDto(Integer num, String channel) {
        this.num = num;
        this.channel = channel;
    }

    public ChannelPieDto() {
    }
}
